from django import forms

# 创建form类
class MyForm(forms.Form):
    name = forms.CharField(label='name', max_length=100)
    age = forms.IntegerField(label="age", max_value=255)